package org.jeecg.modules.inspection.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 巡更点
 * @Author: jeecg-boot
 * @Date:   2019-09-20
 * @Version: V1.0
 */
@Data
@TableName("set_inspection_area")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="set_inspection_area对象", description="巡更点")
public class InspectionArea extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**巡检区域名称*/
	@Excel(name = "巡检区域名称", width = 15)
    @ApiModelProperty(value = "巡检区域名称")
	private String name;
	/**tenantId*/
    @ApiModelProperty(value = "tenantId")
	private String tenantId;
	/**管理处id*/
    @ApiModelProperty(value = "管理处id")
	@Dict(dicCode = "id",dictTable = "sys_depart",dicText = "depart_name")
	private String officeId;
	/**所属项目*/
	@Excel(name = "所属小区", width = 15,dicCode = "id",dictTable = "base_project",dicText = "name")
    @ApiModelProperty(value = "所属项目")
	@Dict(dicCode = "id",dictTable = "base_project",dicText = "name")
	private String projectId;
	/**楼宇ID*/
	@Excel(name = "楼宇", width = 15,dicCode = "id",dicText = "name",dictTable = "base_floor")
    @ApiModelProperty(value = "楼宇ID")
	@Dict(dicCode = "id",dicText = "name",dictTable = "base_floor")
	private String floorId;
	/**巡检区域编号*/
	private String number;
	/**楼层*/
	@Excel(name = "楼层", width = 15)
    @ApiModelProperty(value = "楼层")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String tire;
	/**巡检级别(0:楼宇1:楼层)*/
    @ApiModelProperty(value = "巡检级别(0:楼宇1:楼层)")
	@Dict(dicCode = "inspection_grade")
	private Integer grade;
	/**归属部门(0:客服 1:保洁 2:保安 3:工程)*/
    @ApiModelProperty(value = "归属部门(0:客服 1:保洁 2:保安 3:工程)")
	@Dict(dicCode = "belong_depart")
	private Integer type;
	/**createTime*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**createBy*/
	@Excel(name = "创建人", width = 15,dicCode = "id",dictTable = "sys_user",dicText = "realname")
    @ApiModelProperty(value = "createBy")
	private String createBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
	private String updateBy;
	/**delFlag*/
    @ApiModelProperty(value = "delFlag")
	private Integer delFlag;
	@TableField(exist = false)
	private InspectionLineArea inspectionLineArea;

}
